package cc.mrbird.implementation.domain;

import cc.mrbird.common.annotation.ExportConfig;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name="rehearse_implementation")
public class RehearseImplementation implements Serializable {
    /**
     * 包括单位ID、单位名称、计划时间、实际演练时间、演练内容、演练单位、演练人数、演练现场照片上传等
     */
    private static final long serialVersionUID = 7780821232635888825L;
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "unit_id")
    private Integer unit_id;

    @Column(name = "unit_name")
    @ExportConfig(value = "单位名称")
    private String unit_name;

    @Column(name = "plan_time")
    @ExportConfig(value = "计划时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date plan_time;

    @Column(name = "rehearse_time")
    @ExportConfig(value = "实际演练时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date rehearse_time;

    @Column(name = "rehearse_content")
    @ExportConfig(value = "演练内容")
    private String rehearse_content;

    @Column(name = "rehearse_unit")
    @ExportConfig(value = "演练单位")
    private String rehearse_unit;

    @Column(name = "rehearse_number")
    @ExportConfig(value = "演练人数")
    private Integer rehearse_number;

    @Column(name = "rehearse_scenephoto")
    @ExportConfig(value = "演练现场照片")
    private String rehearse_scenephoto;

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public String getUnit_name() {
        return unit_name;
    }

    public void setUnit_name(String unit_name) {
        this.unit_name = unit_name;
    }

    public Date getPlan_time() {
        return plan_time;
    }

    public void setPlan_time(Date plan_time) {
        this.plan_time = plan_time;
    }

    public Date getRehearse_time() {
        return rehearse_time;
    }

    public void setRehearse_time(Date rehearse_time) {
        this.rehearse_time = rehearse_time;
    }

    public String getRehearse_content() {
        return rehearse_content;
    }

    public void setRehearse_content(String rehearse_content) {
        this.rehearse_content = rehearse_content;
    }

    public String getRehearse_unit() {
        return rehearse_unit;
    }

    public void setRehearse_unit(String rehearse_unit) {
        this.rehearse_unit = rehearse_unit;
    }

    public Integer getRehearse_number() {
        return rehearse_number;
    }

    public void setRehearse_number(Integer rehearse_number) {
        this.rehearse_number = rehearse_number;
    }

    public String getRehearse_scenephoto() {
        return rehearse_scenephoto;
    }

    public void setRehearse_scenephoto(String rehearse_scenephoto) {
        this.rehearse_scenephoto = rehearse_scenephoto;
    }

    @Override
    public String toString() {
        return "RehearseImplementation{" +
                "unit_id=" + unit_id +
                ", unit_name='" + unit_name + '\'' +
                ", plan_time=" + plan_time +
                ", rehearse_time=" + rehearse_time +
                ", rehearse_content='" + rehearse_content + '\'' +
                ", rehearse_unit='" + rehearse_unit + '\'' +
                ", rehearse_number=" + rehearse_number +
                ", rehearse_scenephoto='" + rehearse_scenephoto + '\'' +
                '}';
    }
}
